widget: Avoid some type checks in snapshot_child
authorTimm Bäder <mail@baedert.org>
Tue, 6 Jun 2017 09:00:46 +0000 (11:00 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:13 +0000 (21:27 -0400)
gtk/gtkwidget.c

index b8aa3d780f484891de7c56f33f9d3ea3a365dbbf..a454702307be8c94495dd7aac3b8888d968478ab 100644 (file)
@@ -15783,7 +15783,7 @@ gtk_widget_snapshot_child (GtkWidget   *widget,
   g_return_if_fail (_gtk_widget_get_parent (child) == widget);
   g_return_if_fail (snapshot != NULL);
 
-  gtk_widget_get_allocation (child, &content_allocation);
+  _gtk_widget_get_allocation (child, &content_allocation);
   x = content_allocation.x;
   y = content_allocation.y;